package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {

    User selectById(String openId);

    void save(User user);

    User selectByUserId(Long currentId);


    int selectCountBybegin(LocalDate beginTime);


    Map<String, Object> selectCountByDate(List<String> dateList);

    Map<String, Object> selectSaveByDate(List<String> dateList);


    Integer selectSaveByToday(LocalDate begin,LocalDate end);
}
